package com.tinem.platform.module.starter.jpa.repository.link;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.tinem.platform.module.starter.jpa.entity.link.LinkEvent;

import java.util.Date;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className LinkEventRepository
 * @description TODO
 * @site 
 * @company 
 * @create 2020-09-01 13:41:09
 */
@Repository
public interface LinkEventRepository extends JpaRepository<LinkEvent,String> {
    /**
     * 分页查询链接点击事件
     * @param start
     * @param end
     * @param page
     * @return
     */
    Page<LinkEvent> findByEventTimeBetween(Date start, Date end, Pageable page);
}
